<?php defined('IN_DC') or exit('Access Denied'); ?><?php include mtpl('header'); ?>

  <dl class="shop">
    <dt><?php echo $shopname;?><?php echo m_subname($subname);?> <?php echo m_discount($discount);?></dt>
    <?php if($thumb) { ?><dd><img src="<?php echo SITE_URL;?><?php echo $thumb;?>" width="90" height="90" /></dd><?php } ?><?php $chuyi = $reviews ? $reviews : 1;$renjun = ceil($avgprice/$chuyi); ?><?php if(is_array($sorts)) foreach($sorts AS $key => $val) { ?>
    <?php $starnum = ceil($data[$key]/$chuyi);$starnum = $starnum ? $starnum : 3;$starnum = ($starnum>=5) ? 5 : $starnum; ?>    <dd><div class="startTxt"><?php echo $val;?>：</div><div class="start<?php echo $starnum;?>"></div></dd>
<?php } ?>

    <dd><strong>人均：</strong><?php echo $renjun;?></dd>
    <dd><strong>电话：</strong><?php echo $tel1;?> [<a href='wtai://wp/mc;<?php echo $telcall;?>'>拨打</a>]</dd>
    <dd><strong>地址：</strong><?php echo $address;?>[<a href="?file=shopmap&id=<?php echo $id;?><?php echo $cityparam;?>" class="map">查看地图</a>]</dd>
    <dd><strong>简介：</strong><?php echo $content;?></dd>
    <dd class="wordTxt"><a href="?file=review&shopid=<?php echo $id;?>&action=list<?php echo $cityparam;?>">查看点评(<?php echo $reviews;?>)</a></dd>
    
    <!--<dd><a href="addWord.html"><img src="images/wordbtn.gif" width="55" height="19" /></a></dd> -->
    
  </dl>


<?php if($_SESSION["username"]) { ?>
  <dl class="shop">
    <dt>发布点评</dt>
<form action="?file=review&shopid=<?php echo $id;?><?php echo $cityparam;?>" method="POST">
<?php if(is_array($sorts)) foreach($sorts AS $key => $val) { ?>
<dd><?php echo $val;?>:
<select value="3" name="<?php echo $key;?>">	
    <option value="1">差(0)</option>
    <option value="2">一般(1)</option>
<option value="3">好(3)</option>
<option value="4">很好(4)</option>
<option value="5">非常好(5)</option>
</select>
</dd>
<?php } ?>
<dd>评价：<br /><textarea name="content" cols="22" rows="3"></textarea></dd>
<dd>以下为选填:<br />
人均:￥<input name="avgprice" value="" emptyok="true" size="4"/></dd>
<dd>喜爱程度:
    <select value="1" name="enjoy">	
    <option value="0">不喜欢</option>	
    <option value="1">无所谓</option>	
    <option value="2">喜欢</option>	
    <option value="3">很喜欢</option>
    </select>
</dd>
<dd><input type="submit" name="dosubmit" value="提交" /></dd>
</form>
  </dl>
<?php } else { ?>

  <dl class="shop">发布点评请先<a href="?file=login&forward=<?php echo urlencode(URL);?>">登录</a></dl>

<?php } ?>
  
<?php include mtpl('footer'); ?>